﻿<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <script src="../avalon/avalon.js"></script>
    <script>
        var model = avalon.define({
            $id: "test",
            background: "red"
        })
        //model.$watch("background", function (v) {
        //    model.background = v
        //})

    </script>
</head>
<body>
    <div ms-controller="test">
        <div style="width:200px; height:50px" ms-css-background="background">

        </div>
        <select ms-duplex="background">
            <option value="red">红</option>
            <option value="yellow">黄</option>
            <option value="green">绿</option>
        </select>
    </div>
</body>
</html>